package d0320;
import java.util.Scanner;
public class paixu{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] numbers = new int[10];
        System.out.print("Please enter ten number:");
        for (int i = 0; i < numbers.length; i++)
            numbers[i] = scanner.nextInt();
        for (int i = 0; i < numbers.length - 1; i++)
            for (int j = 0; j < numbers.length - 1; j++)
                if (numbers[j + 1] < numbers[j]) {
                    numbers[j + 1] ^= numbers[j];
                    numbers[j] ^= numbers[j + 1];
                    numbers[j + 1] ^= numbers[j];
                }
        System.out.println("After order:");
        for (int i = 0; i < numbers.length; i++)
            System.out.print(numbers[i] + " ");
        System.out.println();
    }
}